/**
 * API请求模块
 */

import request from '@/utils/request'

// 更新api信息
export const UpdateApi = (data: any) => {
  return request<any>({
    method: 'PUT',
    url: `/serverGovernance/api/v1alpha1/archives`,
    data
  })
}

// api列表
export const ApiPageList = (data: any) => {
  return request<any>({
    method: 'GET',
    url: `/serverGovernance/api/v1alpha1/namespaces/default/archives/${data.name}?labelSelector=${data.version}&page=${data.page}&size=${data.size}`,
    // data
  })
}
